package cn.two.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.two.model.OaApplyreim;
import cn.two.model.OaUser;
import cn.two.service.shenpiService;

@Controller
@RequestMapping("/shenpi")
public class shenpiController {

	@Resource
	private shenpiService shenpiService;
	
	@RequestMapping("/checkAllApplyReim")
	public String checkAllApplyReim(HttpSession session){
		OaUser oaUser=(OaUser) session.getAttribute("OaUser");
		
		List<OaApplyreim> list=shenpiService.checkAllApplyReim(oaUser);
		
		session.setAttribute("oaApplyReim", list);
		
		return "shenpi";
	}
	
}
